package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 地区对象 sys_area
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
@ApiModel("地区对象")
public class SysArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 区划代码 */
    @Excel(name = "区划代码")
    private Long code;

    /** 地区 */
    @Excel(name = "地区")
    private String name;

    /** 父级地区代码 */
    @Excel(name = "父级地区代码")
    private Long parentCode;

    /** 地区级别 1:省 2:市 3:县/区 4:镇 */
    @Excel(name = "地区级别 1:省 2:市 3:县/区 4:镇")
    private Long rank;

    /** 父级 省id */
    @Excel(name = "父级 省id")
    private Long provinceId;

    /** 父级 城市id */
    @Excel(name = "父级 城市id")
    private Long cityId;

    /** 删除时间 */
    @Excel(name = "删除时间")
    private String deleteTime;

    private String cityIndex;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentCode(Long parentCode) 
    {
        this.parentCode = parentCode;
    }

    public Long getParentCode() 
    {
        return parentCode;
    }
    public void setRank(Long rank) 
    {
        this.rank = rank;
    }

    public Long getRank() 
    {
        return rank;
    }
    public void setProvinceId(Long provinceId) 
    {
        this.provinceId = provinceId;
    }

    public Long getProvinceId() 
    {
        return provinceId;
    }
    public void setCityId(Long cityId) 
    {
        this.cityId = cityId;
    }

    public Long getCityId() 
    {
        return cityId;
    }
    public void setDeleteTime(String deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public String getDeleteTime() 
    {
        return deleteTime;
    }

    public String getCityIndex() {
        return cityIndex;
    }

    public void setCityIndex(String cityIndex) {
        this.cityIndex = cityIndex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("parentCode", getParentCode())
            .append("rank", getRank())
            .append("provinceId", getProvinceId())
            .append("cityId", getCityId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
